package cn.wolfcode.feign.fallback;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.SeckillProductVo;
import cn.wolfcode.feign.SeckillFeignApi;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author LuoRis
 * @date 2021/03/05 21:06
 * @description Product兜底数据
 */
@Component
public class SeckillFeignFallBack implements SeckillFeignApi {

    @Override
    public Result<List<SeckillProductVo>> queryCurrentlySeckillProduct(String time) {
        SeckillProductVo seckillProductVo = new SeckillProductVo();
        List<SeckillProductVo> list = new ArrayList<>();
        list.add(seckillProductVo);
        return Result.success(list);
    }
}
